home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / hdsource.zip / HD.DOC < prev    next >
Text File  |  1986-06-15  |  5KB  |  157 lines

  1.  
  2. This program was developed as an alternative to IBM'S "ADVANCED DIAGNOSTICS"
  3. for the hard disk. Although you get more than a hard disk diagnostic with
  4. IBM'S diagnostics, you pay $295 for the package. All I ask in return for
  5. the FREE use of this diagnostic is that you do not change the copyright
  6. nor charge for distribution of this program.
  7.  
  8. Any problems or suggestions should be forwarded to:
  9.  
  10.                JIM BRACKING
  11.             967 PINEWOOD DRIVE
  12.             SAN JOSE, CA 95129
  13.               (408) 725-0628
  14.  
  15.  
  16.  
  17. PROGRAM FEATURES
  18. ----------------
  19.  
  20. This program is menu driven and in most cases should be self-explanatory. It
  21. run on a IBM AT, PC or compatible computer.
  22.  
  23. The diagnostics are divided into two categories, destructive and non destructive
  24. tests. These tests can be useful in installing a new disk, finding and
  25. flagging bad data areas or testing the general working condition of your hard
  26. disk and controller.
  27.  
  28.  
  29. NON-DESTRUCTIVE TESTS
  30. ---------------------
  31.  
  32. In an IBM compatible hard disk bios the last cylinder is reserved for running
  33. diagnostic tests on. This program uses that cylinder for diagnostic writes.
  34.  
  35. F1.......WRITE/READ/VERIFY TEST     This test verify's that read and write work
  36.                     by writing one sector then reading it and
  37.                     comparing it to the value it wrote.
  38.  
  39. F2.......SEEK TEST            This test first verify's every cylinder
  40.                     then exercises the read/write heads by
  41.                     performing a crossing seek pattern.
  42.  
  43. F3.......HEAD SELECT            This test selects one head on every
  44.                     cylinder.
  45.  
  46. F4.......ECC TEST            Most controllers have some form of onboard
  47.                     error correction that writes four bytes of
  48.                     ECC data with every data record. When the
  49.                     data is read these four bytes of ECC are
  50.                     used to determine the validity of the data
  51.                     and make corrections for any incorrect
  52.                     bits depending on the controller. This test
  53.                     does a read long, modify's four bits and
  54.                     write's the record back with a write long.
  55.                     The next read should return the corrected
  56.                     data.
  57.  
  58. F5.......RUN ALL TESTS            This runs tests 1 through 4 and allows the
  59.                     the user to loop up the tests.
  60.  
  61. F6.......PREPARE FOR RELOCATION     Moves the read/write heads to the landing
  62.                     zone. The computer should be shut off after
  63.                     executing this or the heads will move back
  64.                     onto the data surface.
  65.  
  66. F7.......DEFECT SCAN            Reads every sector the specified number of
  67.                     times and reports the errors.
  68.  
  69.  
  70. DESTRUCTIVE TESTS
  71. -----------------
  72.  
  73. F8.......SURFACE ANALYSIS        This test writes the worst case data
  74.                     pattern (6DB6) on every sector and reads
  75.                     it back three times. If any errors are
  76.                     found they are reported and the track if
  77.                     flagged.
  78.  
  79. F9.......FORMAT DISK            This performs a physical format of the hard
  80.                     disk and should not be confused with DOS
  81.                     format. If you are formatting a disk for
  82.                     the first time then you should specify "y"
  83.                     to clear the defects, otherwise a quick
  84.                     scan will be made to identify any flagged
  85.                     tracks. After the format is done the tracks
  86.                     that were flagged as bad will be flagged
  87.                     again.
  88.  
  89. F10......FLAG DEFECTS            Its a sad but true fact that most hard
  90.                     come from the factory with some known
  91.                     defects and some will be developed over
  92.                     time. This routine is used to flag those
  93.                     defects to prevent any data from being
  94.                     written there.
  95.  
  96. A-F10....FORMAT TRACK            The same as the format drive except it
  97.                     only formats one track.
  98.  
  99.  
  100.  
  101. MISCELLANEOUS FUNCTIONS
  102. -----------------------
  103.  
  104. A-F9.....TOGGLE PRINTER ON/OFF        The printer can be used to log any errors.
  105.  
  106. A-F10....EXIT                Return to DOS
  107.  
  108.  
  109.  
  110.  
  111.  
  112.                 SOURCE DOCUMENTATION
  113.  
  114.  
  115. The hard disk diagnostic is made up of many smaller programs that perform a
  116. specific function. Below is a brief description of each program. All of the
  117. BAT files and INCLUDE statements in the programs assume that you have the
  118. the following sub directories setup.
  119.  
  120.         SCRMGR   -    SCREEN MAMAGER SOURCE CODE
  121.         HD         -    HARD DISK DIAGNOSTIC SOURCE CODE
  122.         LST      -    ASSEMBLY LISTINGS
  123.         OBJ      -    OBJECT CODE
  124.  
  125.                  SCREEN MANAGER DATA
  126.  
  127. SCRMGR.ASM        Does all the screen management and keyboard functions.
  128. SCRNWORK.ASM        Equates and structures
  129.  
  130.                  HD SUPPORTING FILES
  131.  
  132. HD.DOC            Documentation
  133. HDLINK.BAT        HD link bat file
  134. HDLINK.DAT        HD link data file (input to hdlink)
  135. ASM.BAT         Assembler bat file
  136.  
  137.                    HD SOURCE CODE
  138.  
  139.  
  140. HD.MAC            HD macros
  141. HDSUB.ASM        HD subroutines external declarations
  142. HDDATA.ASM        External declares
  143. HDEQU.ASM        Common equates
  144. HDMAIN.ASM        Main module
  145. HDALL.ASM        Run all tests
  146. HDECC.ASM        Ecc test
  147. HDFMT.ASM        Format program
  148. HDFSEC.ASM        Flag bad sectors
  149. HDHS.ASM        Head select test
  150. HDMSG.ASM        Common messages
  151. HDRW.ASM        Raed write test
  152. HDSCAN.ASM        Scan test
  153. HDSEEK.ASM        Seek test
  154. HDSHIP.ASM        Prtepare for relocation
  155. HDSURF.ASM        Surface analysis
  156. HDTFMT.ASM        Format a specific track
  157.